package com.wen.edu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wen.edu.entity.EduChapter;
import com.wen.edu.entity.vo.ChapterVO;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author wen
 * @since 2021-05-29
 */
public interface EduChapterService extends IService<EduChapter> {
    /**
     * 根据相关的课程ID来获取对应的课程大纲（课程章节和小节）
     *
     * @param courseId 课程ID
     * @return result of operation
     */
    List<ChapterVO> getChapterVideoByCourseId(String courseId);

    /**
     * 根据章节id删除章节信息
     *
     * @param chapterId 章节ID
     */
    void deleteChapter(String chapterId);

    void removeByCourseId(String courseId);
}
